package utils;

import java.util.Comparator;

/**
 *
 * @author Alejandro
 */
class MyComparator implements Comparator {
    public MyComparator() {
    }
    
    @Override
    public int compare(Object o1, Object o2) {
        int result = 0;
        try {
            Comparable c1 = (Comparable) o1;
            Comparable c2 = (Comparable) o2;
            result = c1.compareTo(o2);
        } catch (Exception e) {}
        return result;
    }
}
